//
//  XSQMeViewController.m
//  BuDeJie
//
//  Created by Sem on 2018/6/25.
//  Copyright © 2018年 SEM. All rights reserved.
//

#import "XSQMeViewController.h"
#import "UIBarButtonItem+Item.h"
#import "XSQSettingVC.h"
@interface XSQMeViewController ()

@end

@implementation XSQMeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNavBar];
    // Do any additional setup after loading the view.
}
-(void)setupNavBar{
    self.navigationItem.title=@"我的关注";
    UIBarButtonItem *moonBtn = [UIBarButtonItem ItmeWithImage:[UIImage imageNamed:@"mine-moon-icon"] withSelImage:[UIImage imageNamed:@"mine-moon-icon-click"] addTarget:self action:@selector(moonClick:)];
    UIBarButtonItem *SettingBtn = [UIBarButtonItem ItmeWithImage:[UIImage imageNamed:@"mine-setting-icon"] withHigthImage:[UIImage imageNamed:@"mine-setting-icon-click"] addTarget:self action:@selector(settingClick)];
    self.navigationItem.rightBarButtonItems=@[SettingBtn,moonBtn];
    
    
}
-(void)moonClick:(UIButton *)btn{
    btn.selected =!btn.selected;
}
-(void)settingClick{
    XSQSettingVC *mVC =(XSQSettingVC *)[XSQTools getControllerFromStoryBoard:@"XSQSettingVC" WithIdentifier:@"XSQSettingVC"];
    [self.navigationController pushViewController:mVC animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
